import { service } from "@/utils/request";

/**
 * 
 * @param {商用-待出库};
 * @param {列表查询}
 * @returns 
 * 
 */
export const getList = (data: any) => {
  return service({
    url: '/basic-data/comm/outLib/page',
    method: 'post',
    data
  })
};

/**
 * 
 * @param {商用-待出库};
 * @param {出库}
 * @returns 
 * 
 */
export const outHome = (data: any) => {
  return service({
    url: '/basic-data/comm/outLib',
    method: 'post',
    data
  })
};

/**
 * 
 * @param {商用-待出库};
 * @param {出库}
 * @returns 
 * 
 */
export const downloadTable = (data: any) => {
  return service({
    url: '/basic-data/comm/outLib/export/excel',
    method: 'post',
    data,
    responseType:'blob'
  })
};

/**
 * 
 * @param {商用-待出库};
 * @param {出库}
 * @returns 
 * 
 */
export const importExcel = (data: any) => {
  return service({
    url: '/basic-data/comm/outLib/import/excel',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    },
  })
};

